<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>编辑教师</title>
        <style type="text/css">
            h3 { text-align: center ; }
        </style>
    </head>
    <body>

        <h3>编辑教师信息</h3>
        <form action="/teacher/edit" method="post">
            <input type="hidden" name="id" value="{{teacher.id}}" >
            <input type="text" name="name" value="{{teacher.name}}" placeholder="教师姓名">
            性别:
            <input type="radio" name="gender" value="靓仔" {{ 'checked' if teacher.gender == '靓仔' else '' }}>靓仔
            <input type="radio" name="gender" value="靓妹" {{ 'checked' if teacher.gender == '靓妹' else '' }}>靓妹
            婚否:
            <input type="radio" name="married" value="已婚" {{ 'checked' if teacher.married == '已婚' else '' }}>已婚
            <input type="radio" name="married" value="未婚" {{ 'checked' if teacher.married == '未婚' else '' }}>未婚
            <button type="submit" >确定</button>
        </form>

    </body>
</html>